﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CNDM.BO
{
    public class CacheName
    {
        public static string Database = "Xmobile";
        public static string TBL_Category = "Category";
        public static string TBL_NewsPublished = "NewsPublished";

        public static string Get_NoiBatTrangChu(int Top)
        {
            return "Get_NoiBatTrangChu_" + Top.ToString();
        }
        public static string Get_DanhSachTinCu(Int64 News_ID, int Top, int Cat_ID)
        {
            return "Get_DanhSachTinCu_" + News_ID + "_" + Top + "_ " + Cat_ID;
        }
        public static string Get_DanhSachTinMoi(Int64 News_ID, int Top, int Cat_ID)
        {
            return "Get_DanhSachTinMoi_" + News_ID + "_" + Top + "_ " + Cat_ID;
        }
        public static string Get_NewsDetail(string news_id)
        {
            return "Get_NewsDetail_" + news_id;
        }

        public static string Get_NoiBatChuyenMuc(int Cat_ID, int Top)
        {
            return "Get_NoiBatChuyenMuc_"+ Cat_ID + "_" + Top;
        }

        public static string Get_DanhSachTin(string News_ID, string Cat_ID, int PageIndex, int PageSize)
        {
            return "Get_DanhSachTin_" + News_ID + "_" + Cat_ID + "_" + PageIndex + "_" + PageSize;
        }

        public static string Get_Category_by_CatUrl(string cat_displayurl)
        {
            return "Get_Category_by_CatUrl_" + cat_displayurl;
        }

        public static string Get_TinMoiNhat(int Cat_ID, int Top)
        {
            return "Get_TinMoiNhat_" + Cat_ID + "_" + Top;
        }

        public static string XMobile_Category_SelectBy_CatParent(int @iCat_ParentID, string Channel)
        {
            return "XMobile_Category_SelectBy_CatParent_" + iCat_ParentID + "_" +Channel;
        }

        public static string Search_News(string keysearch, int PageIndex, int PageSize)
        {
            return "Search_News_" + keysearch + "_" + PageIndex + "_" + PageSize;
        }
    }
}
